package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.vo.SkuItemVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.SkuInfoEntity;

import java.util.List;
import java.util.Map;

/**
 * sku信息
 *
 * @author lirl
 * @email 2608586849@qq.com
 * @date 2021-01-16 16:45:28
 */
public interface SkuInfoService extends IService<SkuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<SkuInfoEntity> getSkuBySpuId(Long spuId);

    void saveSkuInfo(SkuInfoEntity skuInfoEntity);

    /**
     * sku 条件查询
     * @param params
     * @return
     */
    PageUtils queryPageByCondition(Map<String,Object> params);

    SkuItemVo item(Long skuId);

}

